package com.dxlau;

import com.dxlau.service.IPersonService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class BootStrap {
    static final Logger logger = LoggerFactory.getLogger(BootStrap.class);

    public static void main(String[] args) {
        logger.debug("BootStap is running...");
        ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);

        IPersonService personService = ctx.getBean(IPersonService.class);
        personService.addPerson();
    }
}
